@using Rail.Net.Core.Model
@model RelationDescription

@{
    ViewBag.Title = "Delete";
}

<h2>Delete</h2>

<h3>Are you sure you want to delete this?</h3>
<fieldset>
    <legend>RelationDescription</legend>

    <div class="display-label">ValidFrom</div>
    <div class="display-field">@String.Format("{0:g}", Model.ValidFrom)</div>

    <div class="display-label">ValidTo</div>
    <div class="display-field">@String.Format("{0:g}", Model.ValidTo)</div>

    <div class="display-label">StationType</div>
    <div class="display-field">@Model.StationType</div>

    <div class="display-label">Included</div>
    <div class="display-field">@Model.Included</div>

    <div class="display-label">Relation</div>
    <div class="display-field">@(Model.Relation == null ? "None" : Model.Relation.RelationNumber.ToString())</div>

    <div class="display-label">Station</div>
    <div class="display-field">@(Model.Station == null ? "None" : Model.Station.Eva)</div>
</fieldset>
@using (Html.BeginForm()) {
    <p>
        <input type="submit" value="Delete" /> |
        @Html.ActionLink("Back to List", "Index")
    </p>
}


